/**
 * @Author: 健聪
 * @Description: person库
 * @Date: 2024/1/13
 */
// 加入了_表示私有类，不能给外部访问
// class _Person {
class Person {
  // String? _name;   // 私有变量
  String? name;
  int? age;

  // final关键字需要给初始值
  final String address = "None";

  // void _work() { // 私有方法
  void work() {
    // 私有变量和私有方法不能被外部访问
    // print("Name is $_name, Age is $age, He is working...");
    print("Name is $name, Age is $age, He is working...");
  }
}